/**   
 * @Title: GetServerTimeCommunicater.java 
 * @Package: com.esun.rabbit2.communicaters.lotteryinfo 
 * @Description: (获取服务器当前时间) 
 * @Author: Billy qigs@500wan.com   
 * @Date: 2011-8-26 上午10:14:13  
 * Copyright (C) 2011 Shenzhen E-sun Sky Net Technology Co.,ltd.
 */
package com.esun.cheetah.biz.personal.personalcommunicater.sportlottery;

import java.util.HashMap;

import org.json.JSONException;
import org.json.JSONObject;

import android.os.Handler;

import com.esun.cheetah.config.BizCode;
import com.esun.cheetah.config.Key;
import com.esun.cheetah.network.AbsInferiorityCommunicater;

import com.esun.util.log.EDebug;

/**
 * 
 * @Package com.esun.cheetah.biz.personal.personalcommunicater.sportlottery.GetServerTimeCommunicater
 * @ClassName: GetServerTimeCommunicater
 * @Description: TODO(get server time communication)
 * @author handy <br/>
 * @date create at 2012-7-31 下午3:04:46
 *
 */
public class GetServerTimeCommunicater extends AbsInferiorityCommunicater {

	private String status;// 状态
	private String msg;// 返回信息
	private String data;

	public GetServerTimeCommunicater(Handler handler) {
		super(handler);

	}

	@Override
	public HashMap<String, String> comHashMap() {
		HashMap<String, String> hmJson = new HashMap<String, String>();
		hmJson.put(Key.KEY_ID, BizCode.BIZCODE_GETSERVERTIME);
		// hmJson.put(Key.CK, UserInfo.getUserInfo().getCk());
		// hmJson.put(Key.CK,
		// "MTE2NTgyOTU1MTA1YTdmOThmMDEwMDBlYjI3N2Q4ZTA2NmQyYTRmYQ==");

		return hmJson;
	}

	@Override
	public void getJsonContent(String serverRes) throws JSONException {

		JSONObject json = new JSONObject(serverRes);
		status = json.getString(Key.STATUS);
		msg = json.getString(Key.MSG);
		data = json.getString(Key.DATA);
		EDebug.o("msg---" + msg);
		EDebug.o("status---" + status);
		EDebug.o("data---" + data);

	}

	public String getStatus() {
		return this.status;
	}

	public String getMsg() {
		return this.msg;
	}

	public String getData() {
		return this.data;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public void setData(String data) {
		this.data = data;
	}

}
